IMotion.UpdateCommand method

Updates the motion parameters of a command.

Namespace: IntervalZero.KINGSTAR.Base.Api

Assembly: IntervalZero.KINGSTAR.Base.Api (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0

Syntax

C#VB
KsCommandStatus UpdateCommand(
       double Position,
       double Velocity,
       double EndVelocity,
       double Acceleration,
       double Deceleration,
       double Jerk,
       KsCommandStatus Status
)
Function UpdateCommand(
       Position As Double,
       Velocity As Double,
       EndVelocity As Double,
       Acceleration As Double,
       Deceleration As Double,
       Jerk As Double,
       Status As KsCommandStatus
) As KsCommandStatus

Parameters

Position

Type: double

The commanded position for the motion. [unit] (negative or positive)

 

Velocity

Type: double

A value of the maximum velocity. [unit/second]

 

EndVelocity

Type: double

A value of the end velocity. Signed value. [unit/second]

 

Acceleration

Type: double

A value of the acceleration. Always positive. The unit is determined by McProfileType. (increasing power of the motor) [unit/second2] or [second]

 

Deceleration

Type: double

A value of the deceleration. Always positive. The unit is determined by McProfileType. (decreasing power of the motor) [unit/second2] or [second]

 

Jerk

Type: double

A value of the jerk. Always positive. The unit is determined by McProfileType. [unit/second3] or [second]

 

Status

Type: KsCommandStatus

A KsCommandStatus class returns from a motion command.

Return value

Type: KsCommandStatus

Returns the KsCommandStatus class.

Remarks

MethodsParameters
IMotion.HaltAxisDeceleration, Jerk
IMotion.InchAxisDistance, Velocity, EndVelocity, Acceleration, Deceleration, Jerk
IMotion.JogAxisVelocity, EndVelocity, Acceleration, Deceleration, Jerk
IMotion.MoveAxisAbsolutePosition, Velocity, Acceleration, Deceleration, Jerk
IMotion.MoveAxisAdditiveDistance, Velocity, Acceleration, Deceleration, Jerk
IMotion.MoveAxisContinuousAbsolutePosition, Velocity, EndVelocity, Acceleration, Deceleration, Jerk
IMotion.MoveAxisContinuousRelativeDistance, Velocity, EndVelocity, Acceleration, Deceleration, Jerk
IMotion.MoveAxisRelativeDistance, Velocity, Acceleration, Deceleration, Jerk
IMotion.MoveAxisVelocityVelocity, EndVelocity, Acceleration, Deceleration, Jerk
IMotion.SetAxisGearAcceleration, Deceleration, Jerk
IMotion.StopAxisDeceleration, Jerk
IMotion.HaltGroup*Deceleration, Jerk
IMotion.InchGroup*Acceleration, Deceleration, Jerk
IMotion.JogGroup*Acceleration, Deceleration, Jerk
IMotion.MoveLinearAbsolute*Velocity, Acceleration, Deceleration, Jerk
IMotion.MoveLinearRelative*Velocity, Acceleration, Deceleration, Jerk
IMotion.MoveLinearAdditive*Velocity, Acceleration, Deceleration, Jerk
IMotion.MoveCircularAbsolute*Velocity, Acceleration, Deceleration, Jerk
IMotion.MoveCircularRelative*Velocity, Acceleration, Deceleration, Jerk
IMotion.MoveCircularAdditive*Velocity, Acceleration, Deceleration, Jerk
IMotion.MoveHelicalAbsolute*Velocity, Acceleration, Deceleration, Jerk
IMotion.MoveHelicalRelative*Velocity, Acceleration, Deceleration, Jerk
IMotion.MoveHelicalAdditive*Velocity, Acceleration, Deceleration, Jerk
IMotion.StopGroup*Deceleration, Jerk

* Starting from KINGSTAR 4.5, UpdateCommand supports group motion APIs and their parameters listed on the table.

Examples

C#
N/A

See also

IMotion Interface

IntervalZero.KINGSTAR.Base.Api Namespace